<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="{:url('Shop/index')}">列表</a></li>
        <li><a href="{:url('Shop/add')}">添加</a></li>
    </ul>
    <form class=" well form-inline margin-top-20" method="get" action="{:url('Shop/index')}">
        门店名称:
        <input type="text" class="form-control" name="name" style="width:150px;" value="{:input('name')}" placeholder="">
        联系人|联系电话:
        <input type="text" class="form-control" name="contacts" style="width:150px;" value="{:input('contacts')}" placeholder="">
        门店类型
        <input type="submit" class="btn btn-primary" value="搜索"/>
        <a class="btn btn-danger" href="{:url('Shop/index')}">清空</a>
    </form>
    <table class="table table-hover table-bordered">
        <thead>
        <tr>
            <th>ID</th>
            <th>门店名称</th>
            <th>logo</th>
            <th>门店类型</th>
            <th>地址</th>
            <th>联系人</th>
            <th>联系电话</th>
            <th>营业执照</th>
            <th>状态</th>
            <th>创建时间</th>
            <th width="150">操作</th>
        </tr>
        </thead>
        <tbody>
        <foreach name="lists" item="vo">
            <tr>
                <td>{$vo['id']}</td>
                <td>{$vo['name']}</td>
                <td>
                    <a href="javascript:parent.imagePreviewDialog('{$vo.logo.0|cmf_get_image_url}');">
                        <i class="fa fa-photo fa-fw"></i>
                    </a>
                </td>
                <td>{$vo.category.title}</td>
                <td>{$vo['address']}</td>
                <td>{$vo['contacts']}</td>
                <td>{$vo['contact_number']}</td>
                <td>
                    <a href="javascript:parent.imagePreviewDialog('{$vo.business_license.0|cmf_get_image_url}');">
                        <i class="fa fa-photo fa-fw"></i>
                    </a>
                </td>
                <td>{$vo['status_text']}</td>
                <td>{:date('Y-m-d H:i',$vo['create_time'])}</td>
                <td>
                    <a class="btn btn-xs btn-primary" href="{:url('Shop/edit',['id'=>$vo['id']])}">编辑</a>
                    <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('Shop/del',['id'=>$vo['id']])}">删除</a>
                </td>
            </tr>
        </foreach>        
        </tbody>
    </table>
    <div class="pagination">{$page}</div>
</div>
<script src="/static/js/admin.js"></script>
<script src="/static/js/layer/layer.js"></script>
<script>

</script>
</body>
</html>
</body>
</html>
